POV-Ray : Newsgroups : povray.general : POVRay says Macro is not defined : Re: POVRay says Macro is not defined Server Time
2 Aug 2024 08:14:49 EDT (-0400)
  Re: POVRay says Macro is not defined  
From: William Pokorny
Date: 12 Dec 2004 21:43:41
Message: <41bd01dd$1@news.povray.org>
An issue I have hit a few times is that the SDL interpreter seems to have
trouble with macro definitions after the first inside say a layered texture.
Something like this:

#declare A_MACRO = {...}

#declare A_LAYERED_TEXTURE = {
texture { .... A_MACRO .... }
texture { .... A_MACRO .... }   // This macro substitution is not handled
}

does not work and I am in the habit of coding instead:

#declare A_MACRO {...}

#declare A_LAYERED_TEXTURE_1 = {... A_MACRO ... }
#declare A_LAYERED_TEXTURE_2 = {... A_MACRO ... }
#declare A_LAYERED_TEXTURE = {
texture { A_LAYERED_TEXTURE_1 }
texture { A_LAYERED_TEXTURE_2 }
}

which works fine.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.